package com.ohos.connect.devicecloud.iot.model.dto;

import com.ohos.connect.devicecloud.iot.model.dto.deviceactive.DeviceActiveLicenseInfoDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
*   设备交换SN1  DTO
* */

@Getter
@Setter
public class DeviceLoginDTO {

    @ApiModelProperty(value = "设备ID", position = 1)
    @NotBlank(message = "设备id不能为空")
    private String devId;

    @ApiModelProperty(value = "密码", position = 1)
    @NotBlank(message = "密码不能为空")
    private String secret;

    @ApiModelProperty(value = "SDK是否需要时间戳", position = 1)
    private String timeflg;

    private DeviceActiveLicenseInfoDTO licenseInfo;

    @ApiModelProperty(value = "设备重新登录的原因，值对应的描述如下：\n" +
            "0：默认值\n" +
            "1：重启\n" +
            "2：链路异常" +
            "3：wan断开\n" +
            "4：内部业务错误；；", position = 1)
    private Integer type;







}
